local zhaxiang = fk.CreateSkill {
  name = "lvshi__zhaxiang",
  tags = {"Turn"}
}
Fk:loadTranslationTable{
  ["lvshi__zhaxiang"] = "诈降",
  [":lvshi__zhaxiang"] = "回合技，当你受到伤害后，你可令来源摸两张牌，然后你观看其手牌，将其一张手牌置为你的护甲。",

  ["$lvshi__zhaxiang1"] = "若用此计，江东水军不足为惧。",
  ["$lvshi__zhaxiang2"] = "吾赤诚之心，愿丞相明了。",
}

zhaxiang:addEffect(fk.Damaged, {
  anim_type = "masochism",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(zhaxiang.name) and target == player and player:usedSkillTimes(zhaxiang.name, Player.HistoryTurn) == 0
    and data.from
  end,
  on_use = function(self, event, target, player, data)
    data.from:drawCards(2, zhaxiang.name)
    if not data.from:isKongcheng() then
      local id = player.room:askToChooseCard(player, {
        target = data.from,
        flag = {
          card_data = {
            {data.from.general, data.from:getCardIds("h")},
          }
        },
        skill_name = zhaxiang.name,
      })
      player:addToPile("shield", id, true, zhaxiang.name)
    end
  end,
})

return zhaxiang